package com.rising.face.lock.synchronize;

/**
 * @Author: rising
 * @Description:
 * @Date: create in 2021/1/10 19:17
 */
public class DeadLockThreadTest {
    public static void main(String[] args) {
        String lockA = "lockA";
        String lockB = "lockB";

        new Thread(new DeadLockThread(lockA, lockB), "线程AAA").start();
        new Thread(new DeadLockThread(lockB, lockA), "线程BBB").start();
    }
}
